/* 自定义滚动条样式 */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 移除自定义滚动条，使用系统默认显示/隐藏策略 */

/* 平滑滚动 */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Tab激活状态 */
.tab-active {
  background: white;
  color: #3b82f6;
  font-weight: bold;
  transform: translateY(2px);
}

/* 左侧纵向Tab激活状态 */
.vertical-tab-active {
  border-left-color: #10b981;
  background: white;
  color: #10b981;
  font-weight: bold;
}

/* 按钮激活状态 */
.btn-active {
  background-color: #10b981;
  color: white;
}

/* 职业类型Tab激活状态 */
.profession-tab {
  white-space: nowrap;
  padding: 8px 16px;
  border-bottom: 2px solid #f0f0f0;
  color: #999;
  cursor: pointer;
  transition: all 0.3s;
}
.profession-tab.active {
  color: #0667f8;
  border-bottom-color: #0667f8;
}

/* 护士列表响应式布局 */
.nurse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 0;
}

/* PC端：屏幕宽度大于600px时，根据最小宽度150px自动排列 */
@media (min-width: 600px) {
  .nurse-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}

.nurse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .nurse-card {
    padding: 24px 10px;
  }
}

.nurse-card:hover {
  transform: scale(1.05);
}

.nurse-card.selected {
  border: 2px solid #10b981;
  background-color: #f0fdf4;
}

/* 选中人物列表样式 */
.selected-nurses-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 12px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 100;
  /* 确保有足够的空间显示按钮 */
  min-height: 80px;
}

@media (min-width: 768px) {
  .selected-nurses-container {
    padding: 16px;
    max-height: 200px;
  }
}

.selected-nurse-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin: 4px;
  background-color: #f3f4f6;
  border-radius: 6px;
  font-size: 12px;
}

@media (min-width: 768px) {
  .selected-nurse-item {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.selected-nurse-item .delete-btn {
  margin-left: 8px;
  padding: 2px 8px;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .selected-nurse-item .delete-btn {
    font-size: 12px;
  }
}

.selected-nurse-item .delete-btn:hover {
  background-color: #dc2626;
}

/* 操作按钮样式 */
.action-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

@media (min-width: 768px) {
  .action-btn {
    padding: 12px 32px;
    font-size: 16px;
    min-width: 100px;
  }
}

.action-btn.cancel-btn {
  background-color: #f3f4f6;
  color: #374151;
}

.action-btn.cancel-btn:hover {
  background-color: #e5e7eb;
}

.action-btn.confirm-btn {
  background-color: #3b82f6;
  color: white;
}

.action-btn.confirm-btn:hover {
  background-color: #2563eb;
}

.action-btn:active {
  transform: scale(0.98);
}

.nurse-avatar {
  width: 60px;
  height: 60px;
  background-color: #909090;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .nurse-avatar {
    width: 80px;
    height: 80px;
  }
}

.nurse-name {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

@media (min-width: 768px) {
  .nurse-name {
    font-size: 14px;
  }
}

/* 响应式布局调整 */
@media (max-width: 767px) {

  
  #level3Container {
    margin-bottom: 8px;
  }
  
  #contentArea {
    height: auto;
    min-height: 200px;
    max-height: 400px;
    padding-bottom: 160px !important; /* 为底部按钮留出更多空间 */
  }
  
  /* 移动端按钮区域 */
  .selected-nurses-container {
    padding: 10px;
    max-height: 50vh;
  }
  
  .action-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
  }
}
.containers{
  width: 100% !important;
}

/* 原生滚动条样式（绿色、圆角、细） */
#professionContainer,
#level1Container,
#level2Container,
#level3Container,
#contentArea {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #10b981 #f3f4f6;
}

/* WebKit (Chrome, Edge, Safari) */
#professionContainer::-webkit-scrollbar,
#level1Container::-webkit-scrollbar,
#level2Container::-webkit-scrollbar,
#level3Container::-webkit-scrollbar,
#contentArea::-webkit-scrollbar {
  width: 10px;  /* 垂直条宽度 */
  height: 10px; /* 水平条高度 */
}

#professionContainer::-webkit-scrollbar-track,
#level1Container::-webkit-scrollbar-track,
#level2Container::-webkit-scrollbar-track,
#level3Container::-webkit-scrollbar-track,
#contentArea::-webkit-scrollbar-track {
  background: #f3f4f6; /* 浅灰轨道 */
  border-radius: 8px;
}

#professionContainer::-webkit-scrollbar-thumb,
#level1Container::-webkit-scrollbar-thumb,
#level2Container::-webkit-scrollbar-thumb,
#level3Container::-webkit-scrollbar-thumb,
#contentArea::-webkit-scrollbar-thumb {
  background-color: #10b981; /* 绿色拇指 */
  border-radius: 8px;
}

/* 隐藏原生滚动条，用于自定义滚动条叠加时避免重叠 */
/* 移除隐藏原生滚动条设置 */

/* 始终可见的自定义滚动条（垂直） */
/* 移除自定义垂直滚动条结构样式 */

/* 横向自定义滚动条（可选：用于一级/三级横向tab） */
/* 移除自定义横向滚动条结构样式 */

